package com.jin.dao;

import com.jin.pojo.Books;


import java.util.List;

public interface BookMapper {

    //增加书
    int addBooks(Books books);

    //删除一本书
    int deleteBooksById(int id);

    //修改一本书
    int updateBook(Books books);

    //查找一本书
    Books selectBooksById(int id);

    //查找所有书
    List<Books> selectAllBooks();

    //通过书名查找书
    Books selectBooksByName(String bookName);
}
